{include "header.tpl"}
<form id="domainForm" rel="ajax" method="post" action="/Ad/modify" enctype="multipart/form-data" class="form-horizontal" role="form" onsubmit="domainSubmit()">
    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">广告图片(必传)：</label>
        <div class="col-sm-5">
            {if $data.url neq ""}<img style="width: 100px;height: 100px;" src="{$oss_url}{$data.url}">{/if}
            <input type="file" id="url" name="url">
            <input style="display: none" type="text" id="url_t" name="url_t" value="{$data.url}" class="form-control" />
        </div>
    </div>

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">排序值:</label>
        <div class="col-sm-5">
            <input type="text" id="paixu" name="paixu" value="{$data.paixu}" class="form-control" required/>
        </div>
    </div>

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">跳转地址:</label>
        <div class="col-sm-5">
            <input type="text" id="j_url" name="j_url" value="{$data.j_url}" class="form-control" required/>
        </div>
    </div>

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">状态:</label>
        <div class="col-sm-5">
            <select name="status">
                <option value="">请选择状态</option>
                <option value="1" {if $data.status eq 1}selected{/if}>正常</option>
                <option value="2" {if $data.status eq 2}selected{/if}>禁用</option>
                <option value="3" {if $data.status eq 3}selected{/if}>删除</option>
            </select>
        </div>
    </div>



    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">&nbsp;</label>
        <div class="col-sm-3">
            <input type="hidden" name="id" value="{$smarty.get.id}"/>
            <button type="submit" class="btn btn-primary">提交</button>
        </div>
    </div>

</form>

<script type="text/javascript">


</script>
{include "footer.tpl"}